cmake_minimum_required(VERSION 2.8)

PROJECT( process_directory )

INCLUDE_DIRECTORIES (
  ${CVM_SOURCE_DIR}
  ${Motion_SOURCE_DIR}
  ${Boost_INCLUDE_DIR}
  ${OPENSCENEGRAPH_INCLUDE_DIRS}
)

LINK_DIRECTORIES(${CVM_BINARY_DIR}
				 ${Motion_BINARY_DIR}
				 ${Boost_LIBRARY_DIRS})
				 
ADD_EXECUTABLE(process_directory process_directory.cpp)

add_custom_command(TARGET process_directory
                   POST_BUILD
                   COMMAND ${CMAKE_COMMAND} -E copy ${CVM_SOURCE_DIR}/cvm.ini ${process_directory_BINARY_DIR})
  
TARGET_LINK_LIBRARIES(process_directory Motion CVM ${Boost_SYSTEM_LIBRARY} ${Boost_FILESYSTEM_LIBRARY} ${Boost_REGEX_LIBRARY} ${OpenCV_LIBS} ${OPENSCENEGRAPH_LIBRARIES})

